package dao;

import domain.Admin;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

/**
 * Created by jianweilin on 16/8/28.
 */
public interface AdminDao {
    Admin getAdminById(SqlSession sqlSession,Integer id);

    Integer saveAdmin(SqlSession sqlSession,Admin admin);

    List<Admin> getAdminByUserNameOrNickname(SqlSession sqlSession, Admin admin);

    List<Admin> getAdminByAdmins(SqlSession sqlSession, List<Admin> admin);

    List<Admin> getAdminByAnyOneCondition(SqlSession sqlSession, Admin admin);

    Integer updateById(SqlSession sqlSession,Admin admin);
}
